package com.zb.kc.dao;

import com.zb.kc.entity.EduVideo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.kc.entity.form.VideoInfoForm;
import com.zb.kc.entity.vo.ChapterVo;
import com.zb.kc.entity.vo.VideoVo;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;

import java.util.List;

/**
 * <p>
 * 课程视频 Mapper 接口
 * </p>
 *
 * @author wanggen
 * @since 2020-04-10
 */
public interface EduVideoDao extends BaseMapper<EduVideo> {

    /**
     * 根据课程id返回小节集合
     * @param courseId
     * @return
     */
    List<VideoVo> selectByCourseId(String courseId);

    VideoInfoForm selectVideoInfoById(String id);
}
